Registers a delegate to handle incoming calls for a specific modality.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
RegisterForIncomingCall(
Of TCall 
As 
Call) ( _
	
incomingCallDelegate 
As 

IncomingCallDelegate(
Of TCall) _
)
C#
public 
void 

RegisterForIncomingCall<TCall>(
	

IncomingCallDelegate<TCall> 
incomingCallDelegate
)
where TCall : 
Call
Visual C++
public:
generic<
typename TCall>
where TCall : 
Call
void 
RegisterForIncomingCall(
	

IncomingCallDelegate<TCall>^ 
incomingCallDelegate
)
JavaScript
JavaScript does not support generic types or
methods.

Parameters

incomingCallDelegate
Type: Microsoft.Rtc.Collaboration . . :: . IncomingCallDelegate < (Of < ( TCall > ) > )
The delegate method to handle the call.

Type Parameters

TCall
The Call-derived type to be handled.

Remarks

The use of generics enable the communication framework to be extended to support custom modalities other than audio, video or instant messaging. Only one delegate can be registered per TCalltype. Subsequent calls to this method will overwrite the previously set delegate.

See Also